@setlocal
@echo off
REM ==============================================================================
REM Setup script that creates the required certificates. Please refer README 
REM to configure the SSL Certificate.
REM ==============================================================================

REM -------------------------------------------------------------------------------
REM Setting up Serivce STS certificate. Install in LocalMachine/Personal store and
REM CurrentUser/Personal store.
REM -------------------------------------------------------------------------------
makecert.exe -pe -a sha1 -n CN=ServiceSTS -ss MY -sr LocalMachine -sky exchange -sk 974877a3-6154-40e4-b688-25fe8962dc17 > nul

certmgr.exe -add -c -n ServiceSTS -s -r localMachine My -s My > nul

REM -------------------------------------------------------------------------------
REM Setting up Client certificate. Install in LocalMachine/Personal store.
REM -------------------------------------------------------------------------------
makecert.exe -pe -a sha1 -n CN=WCFClient -ss MY -sr CurrentUser -sky exchange -sk 974877a3-6154-40e4-b688-25fe8962dc18 > nul


REM -------------------------------------------------------------------------------
REM Setting up Service Certificate. Install in LocalMachine/Personal store and
REM CurrentUser/Personal store.
REM -------------------------------------------------------------------------------
makecert.exe -pe -a sha1 -n CN=WCFService -ss MY -sr LocalMachine -sky exchange -sk 974877a3-6154-40e4-b688-25fe8962dc19 > nul

certmgr.exe -add -c -n WCFService -s -r LocalMachine My -s My > nul

echo All certificates installed!

@endlocal
